<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div id="app"></div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="http://echarts.baidu.com/dist/echarts.min.js"></script>
<script src="vue-resource.js"></script>
<script>
	Vue.component('my-component',{
		props:{
			show:{
				type:Function,
				default:function(){
					return '默认参数';
				}
			}
		},
		template:`
			<div>
				<p></p>
				<p>我是子组件</p>
			</div>
		`,
		data:function(){
			return {
				msg:1
			}
		}
	})
</script>
</html>